﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Registry.aspx.cs" Inherits="SoccerEvaluator.WebSite.Registry" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Registrar</title>

    <script type="text/javascript">
        function Close()
        {
            var win = getRadWindow();

            win.close();
        }

        function getRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    Nombre</td>
                <td style="margin-left: 200px">
                    <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td style="margin-left: 200px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="Ingrese Nombre" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Usuario</td>
                <td style="margin-left: 200px">
                    <asp:TextBox ID="txtUserName" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td style="margin-left: 200px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtUserName" ErrorMessage="Ingrese Nombre de Usuario" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Email</td>
                <td style="margin-left: 200px">
                    <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td style="margin-left: 200px">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="RegularExpressionValidator" 
                        SetFocusOnError="True" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">Direccion invalida</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Contraseña</td>
                <td style="margin-left: 200px">
                    <asp:TextBox ID="txtPassword1" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                </td>
                <td style="margin-left: 200px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtPassword1" ErrorMessage="Ingrese Contraseña" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator2" runat="server" 
                        ControlToCompare="txtPassword2" ControlToValidate="txtPassword1" 
                        ErrorMessage="Contraseñas no Coinciden" SetFocusOnError="True"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Repetir Contraseña</td>
                <td style="margin-left: 200px">
                    <asp:TextBox ID="txtPassword2" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                </td>
                <td style="margin-left: 200px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtPassword2" ErrorMessage="Ingrese Contraseña" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right" style="margin-left: 200px">
                    &nbsp;</td>
                <td align="right" style="margin-left: 200px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right" style="margin-left: 200px">
                    <asp:Button ID="cmdOk" runat="server" onclick="cmdOk_Click" Text="Registrar" />
                    <asp:Button ID="Button2" runat="server" Text="Cerrar" CausesValidation="False" 
                        onclick="Button2_Click" />
                </td>
                <td align="right" style="margin-left: 200px">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
